"use strict";
var Mysql = /** @class */ (function () {
    function Mysql(url) {
        this.list = [];
        this.url = url;
        console.log("mysql connect success " + this.url);
    }
    Mysql.prototype.add = function (data) {
        this.list.push(data);
        return true;
    };
    ;
    Mysql.prototype.get = function () {
        return this.list;
    };
    return Mysql;
}());
var User = /** @class */ (function () {
    function User(name, age) {
        this.name = name;
        this.age = age;
    }
    return User;
}());
var uu = new User("Tom", 20);
var mysql = new Mysql('www.baidu.com/db');
mysql.add(u);
console.log(mysql.get());
